package com.css.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @description: 农产品支付类型
 * @Title: NcpPayTypeEnum
 * @Author xlw
 * @Package com.invoice.tcc.enums
 * @Date 2024/11/15 17:16
 */
@AllArgsConstructor
@Getter
public enum FxPayTypeEnum {

    XJF("001", "现金支付"),

    YHK("002", "银行转账"),

    PJ("003", "票据"),

    JJK("004", "借记卡"),

    XYK("005", "信用卡"),

    GWK("006", "购物卡/券"),

    YHJ("007", "优惠卷"),

    JF("008", "商场积分"),

    ZFB("009", "支付宝"),

    WX("010", "微信支付"),

    YSF("011", "云闪付"),

    APPLE_PAY("012", "Apple Pay"),

    SAMSUNG_PAY("013", "Samsung Pay"),

    OTHER("099", "其他"),

    ;

    private String dm;

    private String desc;

    public static FxPayTypeEnum getInstance(String dm) {
        for (FxPayTypeEnum e : values()) {
            if (e.getDm().equals(dm)) {
                return e;
            }
        }
        return OTHER;
    }
}
